package com.ohc.test;

public class Lab6_1 {

    public static int Avager(int[] arr, int i) {
        if (arr.length == 1 || arr.length == 2) {
            return 1;
        }
        return 0;
    }

    public static void main(String[] args) {
        int[] arr = new int[]{1, 2, 3, 4, 5};
        int avager = Avager(arr, 0);
        System.out.println("avager = " + avager);
        //        Avg(n) = ( Avg(n-1) * (n-1) + A[n-1] ) / n
    }
}
